import { RouteRecordRaw } from 'vue-router'
import DefaultLayout from '@/layouts/default/index.vue'

const routes: RouteRecordRaw[] = [
  {
    path: '/',
    component: DefaultLayout,
    redirect: '/dashboard',
    children: [
      {
        path: 'dashboard',
        name: 'Dashboard',
        component: () => import('@/views/dashboard/index.vue'),
        meta: {
          title: '仪表盘',
          icon: 'Monitor',
          affix: true,
        },
      },
    ],
  },
]

export default routes
